getOne

inline suspend fun <T : BaseModel> getOne(sub: String, id: String, expandRelations: ExpandRelations = ExpandRelations(), showFields: ShowFields = ShowFields()): T

Fetches a single record

Parameters

sub

The collection you wish to preform this action on

id

ID of the record you wish to view.